package com.example.testhiber.initPackage.business.entity;

import com.example.testhiber.initPackage.business.dic.entity.XxglLx;
import com.example.testhiber.initPackage.config.model.annotation.Des;
import com.example.testhiber.initPackage.config.model.entity.AutoIDModel;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

@Des("信息管理")
@Entity
@Data
@Table(name = "t_xxgl")
public class Xxgl extends AutoIDModel {

	private static final long serialVersionUID = 1L;

	@Des("标题")
	@Column(name = "bt", length = 400)
	private String bt;

	@Des("内容")
	@Column(name = "nr", length = 4000)
	private String nr;

	@Des("app内容")
	@Column(name = "appnr", length = 4000)
	private String appnr;

	/*办事指南*/
	@Des("附件")
	@Column(name="fj", length = 100)
	private String fj;

	@Des("类型")
	@ManyToOne(fetch = FetchType.LAZY )
	private XxglLx xxgllx;

	@Des("单位名称")
	@Column(name="dwmc", length = 300)
	private String dwmc;

	@Des(" 发布时间 ")
	private Date fbsj;

	@Des("办理时间")
	@Column(name="blsj", length = 300)
	private String blsj;

	@Des("联系地址")
	@Column(name="lxdz", length = 500)
	private String lxdz;

	@Des("联系电话")
	@Column(name="lxdh", length = 200)
	private String lxdh;

	@Des("发布人")
	@Column(name = "fbr", length = 200)
	private String fbr;

}
